<script>
  import { router } from "../../routes";
  import Menu from "@smui/menu";
  import List, { Item, Text } from "@smui/list";
</script>

<Menu static>
  <List>
    <Item
      on:SMUI:action={() => {
        router.push("/admin/index");
      }}
    >
      <Text>控制面板</Text>
    </Item>
    <Item
      on:SMUI:action={() => {
        router.push("/admin/artList");
      }}
    >
      <Text>文章列表</Text>
    </Item>
    <Item
      on:SMUI:action={() => {
        router.push("/admin/addart");
      }}
    >
      <Text>添加文章</Text>
    </Item>
    <Item
      on:SMUI:action={() => {
        router.push("/admin/cateList");
      }}
    >
      <Text>分类列表</Text>
    </Item>
  </List>
</Menu>

<style>
  :global(.mdc-menu) {
    height: 100%;
    width: 100%;
  }
</style>
